home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
235
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
2KB
Path: rz.uni-karlsruhe.de!not-for-mail
From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
Newsgroups: comp.lang.c,comp.std.c
Subject: Re: Integral conversion e.t.c. (was: Re: Hungarian notation)
Date: 30 Jan 1996 19:05:36 +0100
Organization: =?ISO-8859-1?Q?Universit=E4t_Karlsruhe_(TH),_Germany_?=
Message-ID: <4elmlg$154@fg70.rz.uni-karlsruhe.de>
References: <30C40F77.53B5@swsbbs.com> <KANZE.96Jan29121956@slsvewt.lts.sel.alcatel.de> <TANMOY.96Jan29090518@qcd.lanl.gov> <KANZE.96Jan29201312@slsvewt.lts.sel.alcatel.de>
Reply-To: Thomas.Koenig@ciw.uni-karlsruhe.de
NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-User: ig25
In comp.std.c, kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) wrote:
>Try naming a global function read, and see what happens (on most
>compilers, anyway). In fact, the Posix standard requires it, and
>thus, you cannot be Posix compliant without encroaching upon the user
>name space.
This can be solved by defining 'weak' symbols. You can then have
a C library, which calls the OS with __syscall_read(), and only bind
this to the 'read' symbol if it's not overridden by the user.
The idea of weak symbols is so old (I think OS/360 had it) that
even some modern Unices use it (Linux with ELF, for one).
--
Thomas Koenig, Thomas.Koenig@ciw.uni-karlsruhe.de, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.